package com.hailong.hadoop.rpc.writable.client;

import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.ipc.RPC;
import com.hailong.hadoop.rpc.writable.protocol.ClientProtol;

import java.net.InetSocketAddress;

/**
 * Created by 31464 on 2021/12/13.
 */
public class HDFSRPCClient {

    public static void main(String[] args) throws Exception {
        ClientProtol clientProtol = RPC.getProxy(ClientProtol.class,
                ClientProtol.versionID,
                new InetSocketAddress("localhost", 8888),
                new Configuration());

        System.out.println("客户端程序--------------");
        clientProtol.sayHello("HADOOP RPC");
    }

}
